<?php
function chkuag($a='MSIE'){
 global $_SERVER;
 if(isset($_SERVER['HTTP_USER_AGENT'])){
  $age=strtoupper($_SERVER['HTTP_USER_AGENT']);
  if(strstr($age, $a))return true;
 }
 return false;
}
?>